﻿#ifndef COPYOPERATOR_H
#define COPYOPERATOR_H

#include<QThread>
#include<QString>
#include<functional>
#include<signaltemp.h>
class CopyOperator:public QThread
{


public:
    CopyOperator(const char* source,const char* direct);
    ~CopyOperator();

    void SetFileInfoCallBack(const std::function<void(const QString,const QString)> &fun);
    SignalTemp* signalTemp;

private:
    QString sourcePath;
    QString directPath;

    void GetFileFolderChildren(QString path);
    void GetFolderFiles(QString dirPath);

    std::function<void(QString,QString)> FileCallBack;



protected:
    void run() override;
};

#endif // COPYOPERATOR_H
